<?php
  $chk_sta = $_REQUEST['formradio1'];
  if  ($chk_sta==0)
  {
      require_once(dirname(__FILE__) . "/insert_sta.php");
  }
  else
  {
  include "connect.php";
  $sta = $_REQUEST['sta'];
  $flag=1;
	mysqli_query($con, "UPDATE $tablename SET flag = '$flag' WHERE id = '1' ");
       	mysqli_query($con, "UPDATE $tablename SET sta = '$sta' WHERE id = '1' ");
?>
<table width="100%" border="0" cellspacing="1" class="form" face='Arial' size='5' align='center';>
          
		  <tr>
		  	<p  style="text-align:center; font-family: Ubuntu,sans-serif; font-size:42px;">
			<?php echo $sta ?></p>
          </td>
          </tr>
<?php		  
  }
  
?>
